﻿<local:BaseDataVisualizer x:Class="BrainTechLLC.Silverlight.ClientApplication.EditGameThing"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication"     
    Loaded="UserControl_Loaded" Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" x:Name="gridData" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer x:Name="nameInfo" DataToVisualize="{Binding Mode=TwoWay, Path=NameInfo}" Loaded="EditNameInfo_Loaded"
                                          local:WindowContainer.IsOpen="False" WindowlessMode="True" 
                                          Template="{StaticResource WinContainer}" VisualizerName="EditNameInfo" IsCollection="False" 
                                          Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" DescriptionTextString="Name and Description" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl Content="Associated ID:" VerticalAlignment="Center"
                            Style="{StaticResource TextBlockContentStyle}" Margin="0,0,0,0" />
            <TextBox Text="{Binding Mode=TwoWay, Path=AssociatedID}" VerticalAlignment="Center" Margin="0,0,0,0" Style="{StaticResource TextBoxNoScroller}" Grid.Column="1"/>
            <ContentControl Content="Type:" Style="{StaticResource TextBlockContentStyle}" VerticalAlignment="Center" Grid.Column="2" Margin="4,0,0,0" />
            <TextBox VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=ActualType}" Width="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Style="{StaticResource TextBoxNoScroller}" Grid.Column="3"/>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl Content="Template ID:" Style="{StaticResource TextBlockContentStyle}" VerticalAlignment="Center" Margin="0,0,0,0" />
            <loc:EditAssociatedID Name="editTemplateID" AssociatedID="{Binding Mode=TwoWay, Path=TemplateID}" Width="Auto" VerticalAlignment="Center" 
                                 HorizontalAlignment="Stretch" Grid.Column="1" Margin="0,0,0,0" RequestEditID="EditTemplateID_RequestEditTemplate"/>
            <ContentControl Content="Thing Type:" Grid.Column="2" VerticalAlignment="Center" Style="{StaticResource TextBlockContentStyle}" Margin="4,0,0,0" />
            <TextBox VerticalAlignment="Center" Grid.Column="3" Text="{Binding Mode=TwoWay, Path=TypeName}" Width="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Style="{StaticResource TextBoxNoScroller}"/>
        </Grid>        
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer x:Name="showAbilities" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto"
                                          local:WindowContainer.IsOpen="False" WindowlessMode="True" 
                                          IsCollection="True" VisualizerName="ShowAbilitiesControl" Loaded="EditAbilities_Loaded"
                                          Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableAbilities}" DescriptionTextString="Abilities" HeaderBackground="#FF159600" WindowBorder="#FF4E0500" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer x:Name="showStates" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto"
                                          local:WindowContainer.IsOpen="False" WindowlessMode="True" 
                                          IsCollection="True" VisualizerName="ShowStatesControl" Loaded="showStates_Loaded"
                                          Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableStates}" DescriptionTextString="States" WindowBorder="#FF006D5B" HeaderBackground="#FF5C003E" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer x:Name="propertiesControl" Width="Auto" HorizontalAlignment="Stretch" Height="Auto"
                                      local:WindowContainer.IsOpen="False" VerticalAlignment="Stretch"
                                      Loaded="EditProperties_Loaded" Owner="{Binding}"                        
                                      IsCollection="True" VisualizerName="ShowPropertiesControl" 
                                      Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableProperties}" HorizontalContentAlignment="Left" 
                                      VerticalContentAlignment="Stretch" WindowlessMode="True" DescriptionTextString="Properties" />
        </Grid>
    </StackPanel>
</local:BaseDataVisualizer>
